#include "Task_Crypto.h"
#include "cmsis_os.h"
uint8_t digest[32];
TaskHandle_t Hd_Task_Crypot;
#define STACKSIZE_Crypto	configMINIMAL_STACK_SIZE
#define PRIORITY_Crypto	(tskIDLE_PRIORITY+8)
static void Task_Crypto(void* param)
{
    bsp_hash_init();
    bsp_hash_caulate((uint8_t*)(&chipinfo.uid),strlen((char *)(&chipinfo.uid)),digest);
    LOG("digest : %s",digest);
    while(1)
    {
        vTaskDelay(1000/portTICK_PERIOD_MS);
    }
}

uint8_t Task_Crypto_Start(void)
{
    xTaskCreate(Task_Crypto,(const char *)"Task_RTT_VIEWER",STACKSIZE_Crypto,NULL,PRIORITY_Crypto,&Hd_Task_Crypot);
    return Ok;
}
